/*    */ package com.qmsk.business.store.checkstockDtl.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.in.GsonHeadManyRows;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.HashMap;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class CheckStockDtlDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 18 */     return getGsonOfParams("selectSqlOfAll", params, nPageIdx, nPageSize, 
/* 19 */       true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfId(Long id) throws SQLException {
/* 23 */     Map params = new HashMap();
/* 24 */     MapUtils.addToMap(params, "id", id);
/* 25 */     return getGsonOfParams("selectSqlOfAll", params, false);
/*    */   }
/*    */ 
/*    */   public int deleteByInId(String[] ids) throws SQLException {
/* 29 */     List list = new ArrayList();
/* 30 */     for (String id : ids) {
/* 31 */       list.add(new Object[] { id });
/*    */     }
/* 33 */     return deleteHeadData(new String[] { "id" }, list);
/*    */   }
/*    */ 
/*    */   public GsonHeadManyRows getManyRowsOutOfId(Long id) throws SQLException {
/* 37 */     Map params = new HashMap();
/* 38 */     params.put("id", id);
/* 39 */     return getManyRowsOfParams("selectSqlOfOut", params);
/*    */   }
/*    */ 
/*    */   public GsonHeadManyRows getManyRowsInOfId(Long id) throws SQLException {
/* 43 */     Map params = new HashMap();
/* 44 */     params.put("id", id);
/* 45 */     return getManyRowsOfParams("selectSqlOfIn", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.store.checkstockDtl.dao.CheckStockDtlDao
 * JD-Core Version:    0.5.3
 */